// Domien Nowicki
#include "QtRobotHitAnimation.h"

QtRobotHitAnimation::QtRobotHitAnimation(): robot(0)
{
}

QtRobotHitAnimation::QtRobotHitAnimation(const QtRobotHitAnimation& rhs): QtAnimationCommand(rhs), robot(rhs.robot)
{
}

QtRobotHitAnimation::~QtRobotHitAnimation()
{
}

void QtRobotHitAnimation::SetRobot(QtRobotSprite* receiver)
{
	robot = receiver;
}

void QtRobotHitAnimation::Execute()
{
	if (robot)
	{
		robot->Hit();
	}
}

QtAnimationCommand* QtRobotHitAnimation::Clone() const
{
	return new QtRobotHitAnimation(*this);
}
